﻿

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IotContract.Models.InfluxDb;
public class DbQuery
{
    /// <summary>
    /// 组织
    /// </summary>
    public string Org { get; set; }
    /// <summary>
    /// 查询数据
    /// </summary>
    [DefaultValue(@"from(bucket: ""test"")
  |> range(start: 0)
  |> filter(fn: (r) => r[""_measurement""] == ""OCV"")
  |> filter(fn: (r) => r[""cell""] == ""hbc_abcdefg_1"")
  |> filter(fn: (r) => r[""step""] == ""OCV2"")")]
    public string Flux { get; set; }
}
